﻿<link rel="stylesheet" href="${ctx}/common/common.css"><%@ page contentType="text/html;charset=UTF-8" language="java" %>
<div class=" wrapper3">
                  <div  class="content">
                      <div class="information product">
                          <h3>产品信息</h3>
                           <c:if test="${not empty product }">
                          <ul>
                              <li>名称：<b>${product.productName}</b></li>
			                  <li>产品标准号：<b>${product.standardNum}</b></li>
			                  <li>规格：<b>${product.specifications}</b></li>
			                  <li>单位：<b>${product.unit}</b></li>
			                  <li>执行标准：<b>${product.perfStandard}</b></li>
			                  <li>配料：<b>${product.ingredients}</b></li>
			                  <li>生产日期：<b>${product.worksheetDate}</b></li>
			                  <li>保质期：<b>${product.shelfLife}天</b></li>
                          </ul>
                          <div class="progress_bar">
                              <div class="div">
                              <c:if test="${not empty  rate}">
                             	  <div class="progressbar" data-perc="${rate}">
                                      <div class="bar color2"><span></span></div>
                                     
                                  </div>
                              
                              </c:if>
                              <c:if test="${ empty  rate}">
                                  	  <div class="progressbar" data-perc="100">
                                      <div class="bar color2"><span></span></div>
                                     
                                  </div>
                              
                              </c:if>  
                              </div>

                              <span class="progress_name">
                                  	剩余：<strong>${product.freeLife}</strong>天
                              </span>
                          </div>
                          </c:if>
                           <c:if test="${empty  product}">
                           		<p>没有数据</p>
                           </c:if>
                       </div>
                      <div class="information source">
                          <h3>商品溯源</h3>
                          <c:if test="${ not empty  enterprise}">
                          <ul>
                          	  <li>企业名称：<span>${enterprise.name}</span>
			                   <c:if test="${not empty enterprise.website}">
			                   	<a href="${enterprise.website}" class="source-btn">进入官网</a>
			                   </c:if>
			                  </li>
                              <li>法人:<span>${enterprise.legalPerson}</span></li>
                              <li>营业执照代码：<span>${enterprise.code}</span></li>
                              <li>企业地址：<span>${enterprise.regAddress}</span></li>
                              <li>联系电话：<span>${enterprise.phone}</span></li>
                              <li class="source-p">营业执照：
                              		<label class="source-img">
                              			 <c:if test="${not empty enterprise.licence1}"><img src="${ctx}/${enterprise.licence1}" style="height:150px"></c:if>
                             		</label>
                              </li>
                              <li class="source-p">生产许可证：
                              	<label class="source-img"> 
                              	<c:if test="${not empty enterprise.licence2}">
			                    	<img src="${ctx}/${enterprise.licence2}" style="height:150px">
			                    </c:if>
                              	</label>
                              </li>
                          </ul>
                          </c:if>
                           <c:if test="${empty  enterprise}">
                           		<p>没有数据</p>
                           </c:if>
                      </div>
                    
             </div>
</div>
            	

